package com.ruoyi.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.dto.reqDto.imagePreviewReqDto;
import com.ruoyi.entity.FileDataEntity;
import com.ruoyi.entity.originVideoEntity;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.math.BigInteger;
import java.util.List;
import com.ruoyi.common.exception.file.FileNameExistsException;

/**
 * @author Chen Lin
 * @date 2022.03.23  10:31 AM
 * @description
 */
public interface FileService extends IService<originVideoEntity> {
    //存储批量招照片信息
    Integer saveImageBatchService(MultipartFile[] files, String taskId, BigInteger timeStamp) throws IOException;
    //获取批量图片的地址列表以及分页总页码数，返回给前端预览或者下载
    imagePreviewReqDto getImagesUrlInfo(String taskId,Integer index);
    //获取任务下的所有视频List
    List<originVideoEntity> getVideoList(String taskId);
    //根据视频名称获取外链地址
    String getVideoUrl(String directory,String fileName);
    //获取taskId获取所有图片列表
    List<String> getDownloadImageUrl(String taskId);
    //根据任务id和图片名称删除图片
    Integer deleteImage(String taskId,String imageName);
    public int savePneumaticFileService(MultipartFile[] files, String id, String workType, String fileType, Integer projectId, BigInteger timeStamp, List<FileDataEntity> fileData, List<FileDataEntity> resultData) throws FileNameExistsException, IOException;
}
